package com.wang.wemedia.api.client;

import com.wang.wemedia.api.model.pojo.WmChannel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author WN
 * @date：2024/03/06 19:58
 */
@FeignClient(name = "news-wemedia", url = "http://localhost:8081")
public interface WmChannelFeign {

    /**
     * 新增频道
     *
     * @param wmChannel
     */
    @PostMapping("/api/v1/channel/api/add")
    Integer add(@RequestBody WmChannel wmChannel);

}
